import { createRouter, createWebHistory } from "vue-router"

let routes = [
  {
    path: "/",
    name: "home",
    component: () => import("@/view/home/home.vue"),
  },
  {
    path: "/map",
    name: "map",
    component: () => import("@/view/map/map.vue"),
  },
  {
    path: "/control",
    name: "control",
    component: () => import("@/view/control/control.vue"),
  },
  {
    path: "/warning",
    name: "warning",
    component: () => import("@/view/warning/warning.vue"),
  },
  {
    path: "/wisdom",
    name: "wisdom",
    component: () => import("@/view/wisdom/wisdom.vue"),
  },
  //{
  //配置404页面
  //path: '/:catchAll(.*)',
  //name: '404',
  //component: () => import(''),
  //}
]
// 路由
const router = createRouter({
  history: createWebHistory(),
  routes,
})
export default router
